<?php
	include("global.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link href="css/div.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.js" language="javascript" type="text/javascript"></script>
<script src="js/jquery-1.4.2.js" language="javascript" type="text/javascript"></script>
<script src="js/secondmenu.js" language="javascript" type="text/javascript"></script>
<style type="text/css">
.pages { height:25px; overflow:hidden; text-align:center; line-height:25px; font-family:Verdana; }
.pages a, .pages strong { margin:0 1px; padding:2px 6px; border:1px solid #E4E4E4; text-decoration:none!important; }
.pages a:hover { border-color:#369; color:369 }
.backs { border-color:#369; background:#369; color:#FFF; }
.pages .prev { padding:4px 6px 2px 20px!important; padding:4px 6px 0 20px; background:url(images/arrow_left.gif) no-repeat 9% 50%; font-family:simsun; }
.next { padding:4px 20px 2px 6px!important; padding:4px 20px 0 6px; background:url(images/arrow_right.gif) no-repeat 91% 50%; font-family:simsun; }
</style>
<script type="text/javascript">
	$(function(){
		$("#fenye a").click( function() {
			$(this).addClass("backs");
		});
	});	 
</script>

</head>
<?php
	include("conn/conn.php");
?>
<body>
<div class="box1">
	<?php include("top.php"); ?>
	<embed src="diy/pics/20100623/1.swf" width="1002" height="254" style="position: absolute; left: 18%; top: 100px;"  quality="high" wmode="transparent"  />
			<img src="diy/pics/20100623/xinxizhongxin.png" border="0" width="1002" />
		  </div>
		</div>
		<div style=" height:10px;">&nbsp;</div>
	
	
	<div style=" height:20px;">&nbsp;</div>
	<div style=" width:1003px;">
		<div style=" width:200px; overflow:hidden; float:left;">
			
			<?php
				include("newstree.php");
				include("search.php");
				if(isset($_POST["submit"])){
					$txtfiled = $_POST["txtfiled"];
					$sql = mysql_query("select typeid,title,contents,addtime,id from article where title like '%".$txtfiled."%' or description  like '%".$txtfiled."%' or  addtime  like '%".$txtfiled."%' or  contents  like '%".$txtfiled."%'");
			?>
		</div>
		<div style="float:left; width:50px;">&nbsp;</div>
		<div style=" float:left; width:750px;">
			<div style=" width: 750px; background-color:#8DBAE0; height:5px;"></div>
			<div style=" width:200px; height:15px;">&nbsp;</div>
			<div style=" width:750px; height:20px;">
				<span style=" float:left; text-align:left;color:#768DC1; font-size:15px; font-weight:bolder; height:30px;">搜索结果</span><span style=" float:right;text-align:right" id="span1"><a href="index.php">首页</a>-><a href="news.php?id=21">信息中心</a>->搜索结果</span>
			</div>
			<div style=" height:10px;">&nbsp;</div>
			<div style=" width:750px; text-align:center; height:460px; line-height:30px;">
			<?php 
				
				while($row=mysql_fetch_array($sql)) {
 			?>
				<div style=" width:140px; float:left; margin:0px 0px 10px 0px;">
					<?php echo date('Y年m月d日',$row[3]); ?>
				</div>
				<div style=" width:600px; float:left; margin:0px 0px 10px 0px; text-align:left">
					<a href="news_detail.php?id=<?php echo $row[4]."&typeid=".$row[0]; ?>"><?php echo $row[1]; ?></a>
				</div>
				<?php } }?>
			</div>
			<div style=" height:20px; clear:both;">&nbsp;</div>
			
			<div class="pages" id="fenye">
				
			</div>

		</div>
	</div>
	<?php include("foot.php"); ?>
</div>
</body>
</html>

